package com.kitty.web.system.chengwei.service.impl;

import com.kitty.web.core.Convert;
import com.kitty.web.domain.PChengwei;
import com.kitty.web.mapper.PChengweiMapper;
import com.kitty.web.system.chengwei.service.IPChengweiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 称号配置Service业务层处理
 * 
 * @author soul
 * @date 2022-04-08
 */
@Service
public class PChengweiServiceImpl implements IPChengweiService
{
    @Autowired
    private PChengweiMapper pChengweiMapper;

    /**
     * 查询称号配置
     * 
     * @param id 称号配置ID
     * @return 称号配置
     */
    @Override
    public PChengwei selectPChengweiById(Long id)
    {
        return pChengweiMapper.selectPChengweiById(id);
    }

    /**
     * 查询称号配置列表
     * 
     * @param pChengwei 称号配置
     * @return 称号配置
     */
    @Override
    public List<PChengwei> selectPChengweiList(PChengwei pChengwei)
    {
        return pChengweiMapper.selectPChengweiList(pChengwei);
    }

    /**
     * 新增称号配置
     * 
     * @param pChengwei 称号配置
     * @return 结果
     */
    @Override
    public int insertPChengwei(PChengwei pChengwei)
    {
        return pChengweiMapper.insertPChengwei(pChengwei);
    }

    /**
     * 修改称号配置
     * 
     * @param pChengwei 称号配置
     * @return 结果
     */
    @Override
    public int updatePChengwei(PChengwei pChengwei)
    {
        return pChengweiMapper.updatePChengwei(pChengwei);
    }

    /**
     * 删除称号配置对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePChengweiByIds(String ids)
    {
        return pChengweiMapper.deletePChengweiByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除称号配置信息
     * 
     * @param id 称号配置ID
     * @return 结果
     */
    @Override
    public int deletePChengweiById(Long id)
    {
        return pChengweiMapper.deletePChengweiById(id);
    }
}
